package com.boot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author Chunsheng.Zhang
 * @date 2021/3/15 18:57
 * @description : TODO
 */
@Configuration
public class WebSocketConfig {

    /**
     * @description: 配置webSocket 服务端点
     * @author: ChunSheng.Zhang
     * @date: 2021/3/15 18:59
     * @return org.springframework.web.socket.server.standard.ServerEndpointExporter
     **/
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }




}
